function batch_noGMM(state_num, num_feat, feature, path_name,cross_val)

file_dir=dir('Data_exp/MFC');
for i=1:length(file_dir)-2
    calltype{i}=file_dir(i+2).name;
end

% ==== proto file =========
prototype(state_num,num_feat,feature)
% ============ mix2 ================
num_cross_val=cross_val;
for i=1:num_cross_val
    % =========== Mohphone HMM batch files =========
    fid=fopen(['monophonehmm' num2str(i) '.bat'],'w');
    fprintf(fid,['HCompV -f 0.01 -m -S train' num2str(i) '.scp -M HMM0 proto\n']);
    status=fclose(fid);
end
for i=1:num_cross_val
    fid=fopen(['monophonehmm_con_' num2str(i) '.bat'],'w');
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM0/hmmdefs -M HMM1 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM1/hmmdefs -M HMM2 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM2/hmmdefs -M HMM3 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM3/hmmdefs -M HMM4 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM4/hmmdefs -M HMM5 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM5/hmmdefs -M HMM6 model.list \n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM6/hmmdefs -M HMM7 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM7/hmmdefs -M HMM8 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM8/hmmdefs -M HMM9 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM9/hmmdefs -M HMM10 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM10/hmmdefs -M HMM11 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM11/hmmdefs -M HMM12 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM12/hmmdefs -M HMM13 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM13/hmmdefs -M HMM14 model.list\n']);
    fprintf(fid, ['HERest -I label.mlf -S train' num2str(i) '.scp -H HMM14/hmmdefs -M HMM15 model.list\n']);
  
    % ========= Hresult ==============
    fid=fopen(['decoding' num2str(i) '.bat'],'w');
    fprintf(fid, ['HVite -H HMM15/hmmdefs -S test' num2str(i) '.scp -w wdnet -l' ' * ' '-i result' num2str(i) '.mlf -p 0.0 -s 0.0 dict model.list \n']);
    fprintf(fid, ['HResults -e "???" sil -e "???" sp -I label.mlf model.list result' num2str(i) '.mlf >> test' num2str(i) '_result.result \n']);
    status=fclose(fid);
end
%
for i=1:num_cross_val
    dos(['monophonehmm' num2str(i) '.bat'])
    clonehmm (num_feat,calltype)
    dos(['monophonehmm_con_' num2str(i) '.bat'])
    dos(['decoding' num2str(i) '.bat'])
end

[accu_ave,accu_cross,conf_mat,conf_sum]=calculateaccu(cross_val);
save([path_name '\Result_nogmm_state' num2str(state_num) '.mat'],'accu_ave','accu_cross','conf_mat','conf_sum');